﻿@model handvn.Models.UserDangKy
@{
    ViewBag.Title = "Handvn Register";
}
<div class="tl_content">
    <div class="tl_dangky">
        <p style="color:Red; font-weight:bold">
            @*Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.*@
            @ViewData["key"]
        </p>
        <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
        @using (Html.BeginForm("register", "account", FormMethod.Post, new { enctype = "multipart/form-data", id = "parentForm" }))
        {
            @Html.ValidationSummary(true, "Đăng ký không thành công. Xin vui lòng sửa lỗi và thử lại.")
            <div>
                <fieldset style="padding-left: 20px">
                    <legend>ĐĂNG KÝ TÀI KHOẢN</legend>
                    <table>
                        <tr>
                            <td class="td_lable">
                                @Html.LabelFor(model => model.Username)
                            </td>
                            <td>
                                <div class="editor-field">
                                    @Html.EditorFor(model => model.Username)
                                    @Html.ValidationMessageFor(model => model.Username)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_lable">
                                    @Html.LabelFor(model => model.Password1)
                            </td>
                            <td>
                                <div class="editor-field">
                                    @Html.EditorFor(model => model.Password1)
                                    @Html.ValidationMessageFor(model => model.Password1)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_lable">
                                    @Html.LabelFor(model => model.ConfirmPassword)
                            </td>
                            <td>
                                <div class="editor-field">
                                    @Html.EditorFor(model => model.ConfirmPassword)
                                    @Html.ValidationMessageFor(model => model.ConfirmPassword)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_lable">
                                    @Html.LabelFor(model => model.TenKhachhang)
                            </td>
                            <td>
                                <div class="editor-field">
                                    @Html.EditorFor(model => model.TenKhachhang)
                                    @Html.ValidationMessageFor(model => model.TenKhachhang)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_lable">
                                    @Html.LabelFor(model => model.CMND)
                            </td>
                            <td>
                                <div class="editor-field">
                                    @Html.EditorFor(model => model.CMND)
                                    @Html.ValidationMessageFor(model => model.CMND)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_lable">
                                    @Html.LabelFor(model => model.DienThoai)
                            </td>
                            <td>
                                <div class="editor-field">
                                    @Html.EditorFor(model => model.DienThoai)
                                    @Html.ValidationMessageFor(model => model.DienThoai)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_lable">
                                    @Html.LabelFor(model => model.Email)
                            </td>
                            <td>
                                <div class="editor-field">
                                    @Html.EditorFor(model => model.Email)
                                    @Html.ValidationMessageFor(model => model.Email)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_lable">
                                    @Html.LabelFor(model => model.DiaChi)
                            </td>
                            <td>
                                <div class="editor-field">
                                    @Html.EditorFor(model => model.DiaChi)
                                    @Html.ValidationMessageFor(model => model.DiaChi)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="td_lable">
                                    @Html.LabelFor(model => model.HinhAnh)
                            </td>
                            <td>
                                <div class="editor-field">
                                    <input type="file" name="file" id="file" />
                                    @Html.ValidationMessageFor(model => model.HinhAnh)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="padding-left:130px;padding-top:10px">
                                <input class="tl_btn" type="submit" value="ĐĂNG KÝ" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </div>
        }
    </div>
</div>
<!-- End Content-->
